const ftp = require("basic-ftp")
const fs = require("fs")

example()

async function example() {
    const client = new ftp.Client()
    try {
        await client.access({
            host: "172.16.150.182",
            port: 8082,
            user: "hansight",
            password: "hansight.com",
        })
        console.log(await client.list())
        // await client.upload(fs.createReadStream("README.md"), "README.md")
    }
    catch(err) {
        console.log(err)
    }
    client.close()
}